<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/token.jsp"%>
<%
    Integer uid = token.getUid();
    List<String> cardNumbers = QBuilder.db("basedb").select("cardNumber").from("UserProfile").where(new Where("uid=", uid).and("status=", STATUS_ENABLE).and("self=", SELF)).query().getResultObj();
    if (cardNumbers.size() == 0) {
        msg = new Message(30091, "暂无信息");
        Tools.encryptPrint(out, msg);
        return;
    }
    String cardNumber = cardNumbers.get(0);
	cardNumber = "320721197904290423";
    String url = "http://61.155.160.91:40080/api/medical.jsp";
    parameters = new HashMap<String, String>();
    parameters.put("card_number", cardNumber);
	String result = HttpUtil.post(url, parameters);
    Tools.encryptPrint(out, result);
%>
